/**
   HotmsgServiceImpl
 * Time:2018年6月27日
 */
package com.ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ssm.dao.HotmsgMapper;
import com.ssm.entity.Hotmsg;
import com.ssm.entity.HotmsgExample;
import com.ssm.service.HotService;

/**
 * @author 15199
 *
 */
@Service("hotService")
public class HotmsgServiceImpl implements HotService {

	@Resource
	private HotmsgMapper hotmsgMapper;
	/* (non-Javadoc)
	 * @see com.ssm.service.HotService#getHotById()
	 */
	@Override
	public List<Hotmsg> getHotById(int id) {
		// TODO Auto-generated method stub
		HotmsgExample hotmsgExample=new HotmsgExample();

		if(id+""!=null){
			hotmsgExample.or().andHidEqualTo(id);
			return hotmsgMapper.selectByExample(hotmsgExample);
		}

         return null;

	}


}
